#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstring>
using namespace std;
char arr[25];
int main()
{
	cin >> arr; int ll = strlen(arr);
	int a, b, tmp;
	int la_l = 0, la_r = 0;
	for (int i = 0; i < ll; i++) {
		if (arr[i] == '.') {
			for (a = 0, b = i - 1; a < b; a++, b--) {
				tmp = arr[a];
				arr[a] = arr[b];
				arr[b] = tmp;
			}
			for (a = i + 1, b = ll - 1; a < b; a++, b--) {
				tmp = arr[a];
				arr[a] = arr[b];
				arr[b] = tmp;
			}
			for (a = 0; (arr[a] != '.' && arr[a] == '0'); a++);
			if (arr[a] == '.') cout << 0;
			for (; arr[a] != '.'; a++)cout << arr[a];
			cout << '.';
			for (b = ll - 1; (arr[b] != '.' && arr[b] == '0'); b--);
			if (arr[b] == '.') { cout << 0; return 0; }
			for (a++; a <= b; a++) cout << arr[a];
			return 0;
		}
		else if ( arr[i] == '/') {
			for (a = 0, b = i - 1; a < b; a++, b--) {
				tmp = arr[a];
				arr[a] = arr[b];
				arr[b] = tmp;
			}
			for (a = i + 1, b = ll - 1; a < b; a++, b--) {
				tmp = arr[a];
				arr[a] = arr[b];
				arr[b] = tmp;
			}
			for (a = 0; arr[a] != '/' && arr[a] == '0'; a++);
			if (arr[a] == '/') cout << 0;
			for (; arr[a] != '/'; a++)cout << arr[a];
			cout << '/';
			for (a++;arr[a] == '0'; a++);
			for (; a < ll; a++)cout << arr[a];
			return 0;
		}
		else if (arr[i] == '%') {
			for (a = 0, b = i - 1; a < b; a++, b--) {
				tmp = arr[a];
				arr[a] = arr[b];
				arr[b] = tmp;
			}
			for (a = 0; arr[a] == '0'; a++);
			if (a == ll - 1) { cout << 0 << '%'; return 0; }
			for (; a < i; a++)cout << arr[a];
			cout << '%';
			return 0;
		}
	}
	for (a = 0, b = ll - 1; a < b; a++, b--) {
		tmp = arr[a];
		arr[a] = arr[b];
		arr[b] = tmp;
	}
	for (a = 0; arr[a] == '0'&&a<ll; a++);
	if (a == ll) { cout << 0; return 0; }
	for (; a < ll; a++)cout << arr[a];
	return 0;
}